package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ScreeningScheduleMapper;
import com.ruoyi.system.domain.ScreeningSchedule;
import com.ruoyi.system.service.IScreeningScheduleService;

/**
 * 放映计划信息数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-28
 */
@Service
public class ScreeningScheduleServiceImpl implements IScreeningScheduleService 
{
    @Autowired
    private ScreeningScheduleMapper screeningScheduleMapper;

    /**
     * 查询放映计划信息数据
     * 
     * @param screeningId 放映计划信息数据主键
     * @return 放映计划信息数据
     */
    @Override
    public ScreeningSchedule selectScreeningScheduleByScreeningId(Long screeningId)
    {
        return screeningScheduleMapper.selectScreeningScheduleByScreeningId(screeningId);
    }

    /**
     * 查询放映计划信息数据列表
     * 
     * @param screeningSchedule 放映计划信息数据
     * @return 放映计划信息数据
     */
    @Override
    public List<ScreeningSchedule> selectScreeningScheduleList(ScreeningSchedule screeningSchedule)
    {
        return screeningScheduleMapper.selectScreeningScheduleList(screeningSchedule);
    }

    /**
     * 新增放映计划信息数据
     * 
     * @param screeningSchedule 放映计划信息数据
     * @return 结果
     */
    @Override
    public int insertScreeningSchedule(ScreeningSchedule screeningSchedule)
    {
        return screeningScheduleMapper.insertScreeningSchedule(screeningSchedule);
    }

    /**
     * 修改放映计划信息数据
     * 
     * @param screeningSchedule 放映计划信息数据
     * @return 结果
     */
    @Override
    public int updateScreeningSchedule(ScreeningSchedule screeningSchedule)
    {
        return screeningScheduleMapper.updateScreeningSchedule(screeningSchedule);
    }

    /**
     * 批量删除放映计划信息数据
     * 
     * @param screeningIds 需要删除的放映计划信息数据主键
     * @return 结果
     */
    @Override
    public int deleteScreeningScheduleByScreeningIds(Long[] screeningIds)
    {
        return screeningScheduleMapper.deleteScreeningScheduleByScreeningIds(screeningIds);
    }

    /**
     * 删除放映计划信息数据信息
     * 
     * @param screeningId 放映计划信息数据主键
     * @return 结果
     */
    @Override
    public int deleteScreeningScheduleByScreeningId(Long screeningId)
    {
        return screeningScheduleMapper.deleteScreeningScheduleByScreeningId(screeningId);
    }
}
